import {
    http,
    api,
    httpService
} from '@/common/http/index.js';
import qs from 'qs';

//查询社群商品信息
export const queryAssociationGoodsInfo = (params = {}) => {
    return http.post(api.queryAssociationGoodsInfo, qs.stringify(params), {
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    });
}
//删除社群商品信息
export const deleteAssociationGoodsInfo = (params = {}) => {
    return http.post(api.deleteAssociationGoodsInfo, qs.stringify(params), {
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    });
}
//迷糊查询社群商品信息
export const findGoodsInfoByGoodsName = (params = {}) => {
    return http.post(api.findGoodsInfoByGoodsName, qs.stringify(params), {
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    });
}
//添加社群商品信息
export const addAssociationGoods = (params = {}) => {
    return http.post(api.addAssociationGoods, qs.stringify(params), {
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    });
}
//编辑社群商品信息
export const updateAssociationGoods = (params = {}) => {
    return http.post(api.updateAssociationGoods, qs.stringify(params), {
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    });
}
